<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Service A.E.</title>
</head>
<body>

<form name="frm" method="POST" action="/car-dbs-implementation/LoginServlet">
<div align="center">

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td><img src="../images/carServiceLogo.png" alt="Service A.E." width="260" height="228"/></td>
	<td><img src="../images/employeeLogo.png" alt="carDbs" width="260" height="228"/></td>
 </tr>
  <tr>
    <td width="22%">&nbsp;</td>
    <td width="78%">&nbsp;</td>
    </tr>
  <tr>
    <td>Όνομα χρήστη </td>
    <td><input type="text" name="username"></td>
  </tr>
  <tr>
    <td>Κωδικός χρήστη </td>
    <td><input type="password" name="password"></td>
  </tr>
   <%
		String error = (String)session.getAttribute("error");
		
		if ((error!=null) && (error.equals("true")))
		{
		%>
		<tr>
    		<td></td>
    		<td><font size="4" face="arial" color="red">Λανθασμένο username ή password!!!</font></td>
  		</tr><%
  		session.setAttribute("error","false");
		}%>		
	
  <tr>
    <td>&nbsp;</td>
    <td>
    <p>
    <input type="submit" name="submit" value="Είσοδος"></td>
    </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
</table>
</div>
</form>
</body>
</html>